package com.faker.service;

import com.faker.dao.ConfigurationDao;
import com.faker.entity.SysConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class ConfigurationService {
    @Resource
    private ConfigurationDao configurationDao;


    public int saveConfiguration(SysConfiguration sysConfiguration) {
        return configurationDao.saveConfiguration(sysConfiguration);
    }


    public SysConfiguration queryConfiguration(Long connectionId) {
        return configurationDao.queryConfiguration(connectionId);
    }


}
